package javaBasic.javaSE1.ArrayList_learn;

import java.util.ArrayList;
import java.util.Random;
import java.util.stream.IntStream;

public class practice_01 {
    public static void main(String[] args) {
        Random random = new Random();
        ArrayList<Integer> arrayList = new ArrayList<>();
        for (int i=0;i<=5;i++){
            int num = random.nextInt(32)+1;
            arrayList.add(num);
        }
        System.out.println(arrayList);
        for (int i=0;i<=5;i++){
            System.out.println(arrayList.get(i));
        }



    }
}
